aboutdialog: ensure the credits page uses the "view" style class
authorCosimo Cecchi <cosimoc@gnome.org>
Fri, 21 Dec 2012 16:52:03 +0000 (17:52 +0100)
committerCosimo Cecchi <cosimoc@gnome.org>
Fri, 21 Dec 2012 16:55:26 +0000 (17:55 +0100)
Since not every theme renders a background for a GtkViewport (and
Adwaita master doesn't), ensure the grid+viewport we use to emulate a
text view here uses the "view" style class.

gtk/gtkaboutdialog.c

index 66b1af6614f5204bb095474a81c500f2e910b187..9377c1dcf09facd2fd1455dd7aab76cf97b7db63 100644 (file)
@@ -2389,6 +2389,8 @@ create_credits_page (GtkAboutDialog *about)
   gtk_widget_set_halign (grid, GTK_ALIGN_CENTER);
   gtk_widget_set_valign (grid, GTK_ALIGN_START);
   gtk_scrolled_window_add_with_viewport (GTK_SCROLLED_WINDOW (sw), grid);
+  gtk_style_context_add_class (gtk_widget_get_style_context (gtk_bin_get_child (GTK_BIN (sw))),
+                               GTK_STYLE_CLASS_VIEW);
 
   row = 0;